import { createApp } from 'vue'
import pinia from '@/stores'

import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
import '@/style/base.less'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
const app = createApp(App)
import locale from 'element-plus/es/locale/lang/zh-cn'
app.use(ElementPlus, {
    // 设置组件库语言包(国际化处理)
    locale
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(pinia)
app.use(router)

app.mount('#app')
